
package com.motu.vertx.module.utility.logsdk;

import com.motu.data.UserLoginDevice;

public class AdjustRequestInfo {
	public int type;
	public int param;
	public long userId;
	public String distinctId;
	public int platform;
	public long channel;
	public double money;
	public String idfa;//IOS 即 idfa  安卓 即 mac地址
	public String idfv;//IOS 即 idfv  安卓 即 android_id
	public String androidid;//
	public String gps_adid;// 安卓设备用 Google Play 广告商 ID
	public String adid;// adjust adid
	public String ryos;//

	public AdjustRequestInfo(long userId, UserLoginDevice userLoginDevice, int type, int param) {
		this.userId = userId;
		this.distinctId = userLoginDevice.getDistinctId();
		this.type = type;
		this.param = param;
		this.platform = userLoginDevice.getPlatform();
		this.channel = userLoginDevice.getChannel();
		this.idfa = userLoginDevice.getIdfa();
		this.idfv = userLoginDevice.getIdfv();
		this.androidid = userLoginDevice.getAndroidId();
		this.gps_adid = userLoginDevice.getGpsAdid();
		this.adid = userLoginDevice.getAdid();
		this.ryos = userLoginDevice.getRyos();
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public boolean isAndroidPackage() {
		return ryos.equalsIgnoreCase("android");
	}

	public boolean isIosPackage() {
		return ryos.equalsIgnoreCase("ios");
	}
}

